package com.woniu.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 课件表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(value = "课件实体类")
public class Courseware implements Serializable {
    @ApiModelProperty(value = "课件id")
    private Integer id;
    @ApiModelProperty(value = "章节id")
    private Integer chaptertId;//  章节id         int not null,
    @ApiModelProperty(value = "用户id 讲师id")
    private Integer userId;//  讲师id             int not null,
    @ApiModelProperty(value = "课件名称")
    private String coursewareName;//课件名称       varchar(50) not null,
    @ApiModelProperty(value = "文件路径")
    private String filePath;//  文件路径           varchar(255) not null,
    @ApiModelProperty(value = "文件大小")
    private Integer fileZce;//  文件大小            int not null,
    @ApiModelProperty(value = "封面图片")
    private String mooma; // 封面图片              varchar(100) not null,
    @ApiModelProperty(value = "课件类型")
    private String coursewareType;// 课件类型      varchar(20) not null,
    @ApiModelProperty(value = "课件时长")
    private Integer  coursewareTime;// 课件时长(单位s)      int not null,
    @ApiModelProperty(value = "课件详情")
    private String  particulars ;//课件详情         varchar(255),
    @ApiModelProperty(value = "课程id")
    private Integer courseId;//课程id	        int not null,
    @ApiModelProperty(value = "课件标签")
    private String  coursewareLabel;// 课件标签     varchar(20),
    @ApiModelProperty(value = "创建时间")
    private Date createTime ;//创建时间          datetime not null,
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;//  更新时间         datetime,
    @ApiModelProperty(value = "课件序号")
    private Integer courseNumber;// 课件序号        int not null,
    @ApiModelProperty(value = "课件对应的评论集合")
    private List<CourseComment> courseComments;//课件对应的评论
}
